// src/router/index.js
import { createRouter, createWebHistory } from 'vue-router';
import GenCode from '@/components/GenCode.vue'; // 页面 1
import JtSimulate from '@/components/JtSimulate.vue'; // 页面 2
import homeIndex from '@/components/HomeIndex.vue';

const routes = [
    {
        path: '/',
        name: 'home',
        component: homeIndex
    },
    {
        path: '/GenCode',
        name: 'GenCode',
        component: GenCode, // 对应页面 1
    },
    {
        path: '/JtSimulate',
        name: 'JtSimulate',
        component: JtSimulate, // 对应页面 2
    },
];

const router = createRouter({
    history: createWebHistory(),
    routes,
});

export default router;
